package kr.saeildamil.androidstudy.ch17;

import android.app.TabActivity;
import android.content.Intent;
import android.os.Bundle;
import android.widget.TabHost;

@SuppressWarnings("deprecation")
public class TabTest3 extends TabActivity {
	TabHost mTab;

	protected void onCreate(Bundle savedInstanceState) {
		super.onCreate(savedInstanceState);
		TabHost tabHost = getTabHost();

		Intent int1 = new Intent("kr.saeildamil.androidstudy.ch17.ACTIVITYLC");
		int1.addFlags(Intent.FLAG_ACTIVITY_SINGLE_TOP);
		tabHost.addTab(tabHost.newTabSpec("tab1")
				.setIndicator("Activity Life Cycle").setContent(int1));

		Intent int2 = new Intent(this, SaveState.class);
		int2.addFlags(Intent.FLAG_ACTIVITY_SINGLE_TOP);
		tabHost.addTab(tabHost.newTabSpec("tab2").setIndicator("Save State")
				.setContent(int2));

		Intent int3 = new Intent(this, SaveCurve.class);
		int3.addFlags(Intent.FLAG_ACTIVITY_SINGLE_TOP);
		tabHost.addTab(tabHost.newTabSpec("tab3").setIndicator("Save Curve")
				.setContent(int3));

	}
}
